package com.server.questionbank.snframe.service.NoteService;

import java.util.Map;

import org.springframework.web.multipart.MultipartFile;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.server.questionbank.snframe.domain.Note.TNote;
import com.server.questionbank.snframe.domain.Note.TNoteFile;

public interface TNoteService extends IService<TNote> {
    /**
     * 搜索笔记
     * @param page
     * @param size
     * @param params
     * @return
     */
    public Page<TNote> searchNotes(int page, int size, Map<String, Object> params);
    /**
     * 创建笔记
     * @param note
     */
    public void createNote(TNote note);
    /**
     * 更新笔记
     * @param note
     */
    public void updateNote(TNote note);
    /**
     * 删除笔记
     * @param noteId
     */
    public void deleteNote(Long noteId);
    /**
     * 上传文件
     * @param file
     * @param noteId
     * @return
     */
    public TNoteFile uploadFile(MultipartFile file, Long noteId);
}
